package edu.ccut.saturn.basecomponent.database.impl.mysql.builder;

import edu.ccut.saturn.basecomponent.database.ISaturnSQL;
import edu.ccut.saturn.basecomponent.database.SaturnSQLBuilderFactory;
import edu.ccut.saturn.basecomponent.database.impl.AbstractUpdateSQLBuilder;
import edu.ccut.saturn.component.IDataItem;

public class MysqlUpdateSQLBuilder extends AbstractUpdateSQLBuilder {

	@Override
	protected String getSetValueString(IDataItem iDataItem, Object value) {
		return iDataItem.getColumn() + "=?";
	}

	@Override
	protected String getDatabaseType() {
		return SaturnSQLBuilderFactory.MYSQL;
	}

	@Override
	protected String getOperationType() {
		return ISaturnSQL.UPDATE_LOB_OPERATION;
	}
}
